/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:LinkPK
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.pk;

import com.yjhl.framework.domain.pk.PK;
import com.wx.demo.wcd.domain.po.LinkPO;

/**
 * primary key class for Link 
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */

public class LinkPK extends PK {
    private static final long serialVersionUID = 1L;
    
    /**
     * 链接表标识
     */
    private String linkId;

    public String getLinkId() {
        return linkId;
    }

    public void setLinkId(String linkId) {
        this.linkId = linkId;
    }
    
    public LinkPK(){
    	super();
    }
    public LinkPK(
    	String linkId 
                ){
    	super();
    	
	    setLinkId ( linkId );	    		
    }
    
	/**
	 * @see com.yjhl.framework.domain.pk.PK#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
	    linkId == null 	    	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.pk.PK#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	(linkId == null || linkId.length() == 0) 
				);
	}
    
    
    /**
	 * @see com.yjhl.framework.domain.pk.PK#makePO()
	 */
	@Override
    public LinkPO makePO(){
    	LinkPO entityPO = new LinkPO();
    	
		entityPO.setLinkId( linkId );
    	
    	return entityPO;
	}
}
